package org.lwd.datalink.domain.meta;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Author: weidong.lin
 */
@Getter
@Setter
public class HbaseStatus {

    private Integer serversSize;
    private Integer version;
    private Integer backupMastersSize;
    private Integer deadServers;
    private Integer regionsCount;
    private Boolean balancerOn;
    private String clusterId;
    private String hBaseVersion;
    private Integer averageLoad;
    private List<ServerInfo> backupMasters;
    private ServerInfo master;
    private List<ServerInfo> serverInfo;

    @Getter
    @Setter
    public static class ServerInfo{
        private String hostAndPort;
        private String hostname;
        private Integer port;
        private String serverName;
        private Long startcode;
        private String versionedBytes;
    }

}
